package com.zx.bean;


//员工
public class Worker {
    private Integer id;
    private Integer code;//员工工号
    private String name;//姓名
    private String sex;//性别
    private String post;//所在部门
    private String job;//职务
    private String enter;//进入公司的时间

    public Worker() {
    }

    public Worker(Integer id, Integer code, String name, String sex,String post,String job, String enter) {
        this.id = id;
        this.code = code;
        this.name = name;
        this.sex = sex;
        this.post = post;
        this.job = job;
        this.enter = enter;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getPost() {
        return post;
    }

    public void setPost(String post) {
        this.post = post;
    }

    public String getJob() {
        return job;
    }

    public void setJob(String job) {
        this.job = job;
    }

    public String getEnter() {
        return enter;
    }

    public void setEnter(String enter) {
        this.enter = enter;
    }

    @Override
    public String toString() {
        return "Worker{" +
                "id=" + id +
                ", code=" + code +
                ", name='" + name + '\'' +
                ", sex='" + sex + '\'' +
                ", post='" + post + '\'' +
                ", job='" + job + '\'' +
                ", enter='" + enter + '\'' +
                '}';
    }
}
